package com.teemor.tim.rest;


import com.teemor.tim.rest.model.RestParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @ename zhoulk
 * @cname 周李科
 * @date 2020/12/8 17:32
 */
@FeignClient(name = "account", url = "https://console.tim.qq.com/v4/im_open_login_svc/")
public interface AccountFeignClient {

    @PostMapping("account_import")
    String importAccount(@SpringQueryMap RestParam queryParam,
                         @RequestBody Map<String, Object> map);
}
